The standard C (and C++, D, obj-C, etc...) compiler on Linux is called GCC (GNU C Compiler). In ubuntu you must first install it by installing the build-essentials package
Code:
sudo apt-get install build-essentials
If you have your sourcecode in a file called helloworld.c you compile it the folowing way:
Code:
gcc -o helloworld helloworld.c
You can then run the program using:
If your program is large you will probably want write a makefile for it. Search for makefile tutorial for more information